From: Ian Campbell Date: Thu, 26 Sep 2013 11:35:35 +0000 (+0100) Subject: xen/arm: DOMHEAP_SECOND_PAGES is arm32 specific X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6259 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=1fbb3b146c7b8a4e9ff4d29234931c57879b4ca8;p=xen.git xen/arm: DOMHEAP_SECOND_PAGES is arm32 specific since 5263507b1b4a "xen: arm: Use a direct mapping of RAM on arm64" Signed-off-by: Ian Campbell Acked-by: Julien Grall Acked-by: Tim Deegan --- diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h index 604088e06b..624c73e54f 100644 --- a/xen/include/asm-arm/config.h +++ b/xen/include/asm-arm/config.h @@ -136,6 +136,9 @@ #define DOMHEAP_ENTRIES 1024 /* 1024 2MB mapping slots */ +/* Number of domheap pagetable pages required at the second level (2MB mappings) */ +#define DOMHEAP_SECOND_PAGES ((DOMHEAP_VIRT_END - DOMHEAP_VIRT_START + 1) >> FIRST_SHIFT) + #else /* ARM_64 */ #define SLOT0_ENTRY_BITS 39 @@ -159,9 +162,6 @@ #endif -/* Number of domheap pagetable pages required at the second level (2MB mappings) */ -#define DOMHEAP_SECOND_PAGES ((DOMHEAP_VIRT_END - DOMHEAP_VIRT_START + 1) >> FIRST_SHIFT) - /* Fixmap slots */ #define FIXMAP_CONSOLE 0 /* The primary UART */ #define FIXMAP_PT 1 /* Temporary mappings of pagetable pages */